package com.kll.tv.views.entity

import com.chad.library.adapter.base.entity.MultiItemEntity
import com.kll.carolinehmibiz.net.bean.GetPhotoAlbumResponse


/**
 * ====================================================
 * Created by Ziliang Cai on 2022/1/11 21:16
 * <a href="mailto:752577456@qq.com">Contact me</a>
 * ====================================================
 */
class PhotoAlbumMultiItemEntity : MultiItemEntity {

    override var itemType: Int
    var title: String = ""
    var datas: ArrayList<GetPhotoAlbumResponse.PhotoAlbum.PhotoInfo>? = null

    companion object {
        val LAYOUT_TITLE = 1
        val LAYOUT_ITEM = 2
    }

    constructor(title: String) {
        this.title = title
        itemType = LAYOUT_TITLE
    }

    constructor(datas: ArrayList<GetPhotoAlbumResponse.PhotoAlbum.PhotoInfo>) {
        this.datas = datas
        itemType = LAYOUT_ITEM
    }
}